<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var n = new Number("10");
			
			console.log(Number.MAX_VALUE);
			console.log(Number.MIN_VALUE);
			console.log(Number.NaN);//非数字
			
			var n2 = 6;
			//判断一个变量是否为非数字类型
			console.log(Number.isNaN(n2));//false
			
			var n3 = "9";
			var n4 = Number.parseInt(n3) + 1;
			// console.log(n4);
			
			var n5 = "3.1415926";
			var n6 = Number.parseFloat(n5);
			console.log(n6);
			console.log(n6.toFixed(2));
			console.log(n6.toFixed(3));
		</script>
	</head>
	<body>
	</body>
</html>
